package com.sptpc.learnspring.repository;

import com.sptpc.learnspring.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface CategoryRepository extends JpaRepository<Category,Long>{
    Optional<Category> findCategoryByNameLike(String name);//where name like 参数
}
